package com.ming.springboot.security;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * Created by mqsi on 2022/5/24 11:23
 */
public class SimplePasswordEncoder implements PasswordEncoder {
	@Override
	public String encode(CharSequence rawPassword) {
		return rawPassword.toString();
	}

	@Override
	public boolean matches(CharSequence rawPassword, String encodedPassword) {
		return encodedPassword.equals(rawPassword.toString());
	}
}
